package com.xlx.openLink.base;

import com.xlx.openLink.enums.ResultCodeEnum;

public class ThreadRunTimeExcption extends RuntimeException {
    private ResultCodeEnum resultCodeEnum;

    public ThreadRunTimeExcption(ResultCodeEnum resultCodeEnum,String message) {
        super(message);
        this.resultCodeEnum = resultCodeEnum;
    }
 public ThreadRunTimeExcption(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getDescription());
        this.resultCodeEnum = resultCodeEnum;
    }

    public ResultCodeEnum getResultCodeEnum() {
        return resultCodeEnum;
    }

    public void setResultCodeEnum(ResultCodeEnum resultCodeEnum) {
        this.resultCodeEnum = resultCodeEnum;
    }
}
